package com.xmotor.test_ConfigurationProperties.config;

import com.xmotor.test_ConfigurationProperties.model.Client;
import com.xmotor.test_ConfigurationProperties.model.Permission;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description 测试配置类
 * @Author Dang Xianyue
 * @Date 2020-08-09 12:23
 * @Version 1.0
 */
@Data
@Component
//如果只有一个主配置类文件，@PropertySource可以不写
//@PropertySource(value = {"classpath:config/alipay.properties"})
@ConfigurationProperties(prefix = "com.demo")
public class DemoConfig {
    private Integer id;
    private String name;
    private Boolean flag;
    private String[] strArr;
    private Client client;
    private List<Permission> permission;
}
